package com.boyuan.huijiaoyu;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;

public class ZhaohuimimaActivity extends Activity implements OnClickListener{

	private EditText edit1;
	private EditText edit2;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_zhaohuimima);
		initUI();
	}

	private void initUI() {
		findViewById(R.id.lay_back).setOnClickListener(this);
		edit1 = (EditText) findViewById(R.id.edit_1);
		edit2 = (EditText) findViewById(R.id.edit_2);
		findViewById(R.id.button_huoqu).setOnClickListener(this);
		findViewById(R.id.button_tijiao).setOnClickListener(this);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.zhaohuimima, menu);
		return true;
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.lay_back:
			finish();
			break;
		case R.id.button_huoqu:
			getCode();
			break;
		case R.id.button_tijiao:
			summitCode();
			break;
		default:
			break;
		}
	}

	private void summitCode() {
		
	}

	private void getCode() {
		
	}

}
